home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / docs / misc / MemManual.lha / MemManual / Include / memory / memfailhook.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-01-30  |  1.7 KB  |  40 lines

  1. /*****************************************************************
  2.  ** The memory.library                                          **
  3.  **                                                             **
  4.  ** A mmu lib based virtual memory application                  **
  5.  **                                                             **
  6.  ** © 2002 THOR-Software                                        **
  7.  **                                                             **
  8.  **-------------------------------------------------------------**
  9.  ** Module: SwapFailHook                                        **
  10.  **             Defines the hook interface in case swap-in      **
  11.  **             failed.                                         **
  12.  ** Release 40.1        29.01.2002                              **
  13.  *****************************************************************/
  14.  
  15. #ifndef MEMORY_SWAPFAILHOOK_H
  16. #define MEMORY_SWAPFAILHOOK_H
  17.  
  18. #ifndef EXEC_TYPES_H
  19. #include <exec/types.h>
  20. #endif
  21.  
  22. struct SwapFailMsg {
  23.         APTR            sfm_AddressSpace;       /* the address space that failed */
  24.         APTR            sfm_Memory;             /* lower memory that failed */
  25.         ULONG           sfm_Size;               /* size of the memory range that failed to swap in */
  26.         LONG            sfm_Error;              /* type of error */
  27. };
  28.  
  29. /*
  30.  * Possible return values:
  31.  */
  32. #define SWFRET_RETRYSWAP  0     /* repaired the problem, possibly by releasing memory, retry the swap-in */
  33. #define SWFRET_RETRYFAULT 1     /* repaired the problem on the MMU side, retry the exception, do not try to swap-in */
  34. #define SWFRET_DEACTIVATE 2     /* deactivate the exception hook and go guru (default) */
  35.  
  36. #endif
  37.  
  38.  
  39.  
  40.